from .base import *

# 使用内存数据库进行测试
DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": ":memory:",
    }
}

# 内存邮箱后端
EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend'

# 使用本地内存缓存测试
# CACHES = {
#     'default': {
#         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
#     }
# }